package com.tjmc.tiomsresource.service.impl;

import com.tjmc.tiomscore.dao.TranPtnHwPwtMapper;
import com.tjmc.tiomscore.model.TranPtnHwPwt;
import com.tjmc.tiomsresource.parser.CMPwtParser;
import com.tjmc.tiomsresource.service.CMPwtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.List;

/**
 * @author Luc
 * @version 1.0
 * @date 2020-05-20 15:41
 */
@Service("cmPwtService")
public class CMPwtServiceImpl extends CMSuperServiceImpl<TranPtnHwPwt> implements CMPwtService {

    @Autowired
    private CMPwtParser cmPwtParser;
    @Autowired
    private TranPtnHwPwtMapper tranPtnHwPwtMapper;

    @Override
    public CMPwtParser getParser() {
        return cmPwtParser;
    }

    @Override
    public TranPtnHwPwtMapper getMapper() {
        return tranPtnHwPwtMapper;
    }

    @Override
    public boolean saveTranPtnHwDataToDB(List<File> xmlFiles) {
        return this.saveTranPtnHwDataToDB(xmlFiles, "PWT");
    }
}
